package com.demo.salary.transactionimplementation;

import com.demo.salary.abstracttransactions.ChangeMethodTransaction;
import com.demo.salary.payrollimplementation.MailMethod;
import com.demo.salary.payrolldomain.PayMethod;

public class ChangeMailTransaction extends ChangeMethodTransaction {

    String address;

    public ChangeMailTransaction(int empId, String address) {
        super(empId);
        this.address = address;
    }

    @Override
    PayMethod getMethod() {
        return new MailMethod(address);
    }
}
